/*年轻人，只管向前看，不要管自暴自弃者的话*/
package com.composetest.core.network.api

import com.composetest.core.model.Product
import com.composetest.core.model.response.NetworkPageData
import com.composetest.core.model.response.NetworkResponse
import retrofit2.http.GET
import retrofit2.http.Query
import retrofit2.http.QueryMap


/**
 * create by itz on 2024-10-16 13:50
 * desc : 网络请求接口
 **/
interface NetworkApiService {

    /**
     * 商品列表
     */
    @GET("v1/products/page")
    suspend fun products(
        @QueryMap data: Map<String, String>,
        @Query("app") app: String
    ): NetworkResponse<NetworkPageData<Product>>
}